<template>
  <div class="h-panel">
    <PaasIndexBar></PaasIndexBar>
    <PaasPageTable :columns="columns"></PaasPageTable>
  </div>
</template>

<script>
export default {
  mounted() {},
  data() {
    return {
      columns: [
        {
          title: "模板类型",
          prop: "type",
          render: (d) => this.StaticFunc.reader(this, "TemplateType", d.type),
        },
        {
          title: "后台类型",
          prop: "serverType",
          render: (d) =>
            this.StaticFunc.reader(this, "ServerType", d.serverType),
        },
        {
          title: "UI类型",
          prop: "uiType",
          render: (d) => this.StaticFunc.reader(this, "UiType", d.uiType),
        },
        { title: "模块名称", prop: "pkg" },
        { title: "路径", prop: "path" },
        {
          title: "是否组件",
          prop: "isFormType",
          render: (d) =>
            this.StaticFunc.reader(this, "IsFormType", d.isFormType),
        },
      ],
    };
  },
  methods: {
    renderType(data) {
      return this.StaticFunc.reader(this.type, data.type);
    },
    renderIsFormType(data) {
      return this.StaticFunc.reader(this.isFormType, data.isFormType);
    },
  },
};
</script>
